﻿using System.Web.Mvc;
using UIShell.OSGI.Mvc;

namespace $safeprojectname$
{
    public class PluginAreaRegistration : AreaRegistration
    {
        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                   "$AreaName$Plugin",
                   "$AreaName$/{controller}/{action}/{id}",
                   new { action = "Index", id = UrlParameter.Optional },
                   new[] { "$safeprojectname$.Controllers" }
               ).SetPluginSymbolicName("$safeprojectname$");
        }

        public override string AreaName
        {
            get { return "$AreaName$"; }
        }
    }
}